import {sendCodeData} from "../../api/vcode";

export default {
    namespaced: true,
    actions: {
        // 发送短信验证码
        async sendCode(conText, payload) {
            try {
                const res = await sendCodeData(payload);
                return res;
            } catch (error) {
                console.error('发送短信验证码失败:', error);
                throw error;
            }
        }
    }
};